<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="frm.ssh.util.page.SearchBean"%>
<%@ include file="/jsp/common/common.jsp"%>

<html>
	<head>
		<script language="javascript" src="<%=contextPath%>/js/func.js"type=""></script>
		<script type="text/javascript" src="<%=contextPath%>/ext3/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="<%=contextPath%>/ext3/ext-all.js"></script>
		<script type="text/javascript" src="<%=contextPath%>/ext3/ext-lang-zh_CN.js"></script>
		<link rel="stylesheet" type="text/css"	href="<%=contextPath%>/ext3/resources/css/ext-all.css">
		
		<script>
		
			Ext.form.Field.prototype.msgTarget = 'qtip';
		
			Ext.onReady(function(){
				var tb = new Ext.Toolbar({
			   		renderTo: document.all.tbar,
			    	items: [
				        {
				            text: '导出',
				            tooltip:'导出变电检修工区绩效考评信息',
				            icon:"<%=contextPath%>/images/excel_export.gif",
				            handler:expExl
				        },'-',
				        {
				            text: '人事代理导出',
				            tooltip:'导出变电检修工区人事代理绩效考评信息',
				            icon:"<%=contextPath%>/images/excel_export.gif",
				            handler:exprsdlExl
				        },'-',
				        {
				            text: '返回',
				            icon:"<%=contextPath%>/images/fanhui.png",
				            handler:cmt
				        }
			    	]
			    });
			});
		</script>
	</head>
	<body>
		<div id ='tbar'></div>
			
		<table width="100%" height="30">
			<tr>
				<td colspan="4" align="center">
					<%=((SearchBean)session.getAttribute("searchBean")).getCon2()%>&nbsp;~&nbsp;<%=((SearchBean)session.getAttribute("searchBean")).getCon3()%>&nbsp;绩效人员情况
				</td>
			</tr>
		</table>
		
		<hr>
			
			<table width="100%" id="listtab">
				<tr>
					<th width="100">名称</th>
					<!--<th width="200">考核日期</th>-->
					<th width="150">部门</th>
					<th width="150">岗位</th>
					<th width="150">兼职</th>
					<th width="100">是否考核</th>
					<th >不参加考核原因</th>
				</tr>

				<c:forEach items="${jxcpUserList}" var="detail" >
					<tr>
						<td  width="100">
							<c:out value="${detail.name}"/><br>
						</td>
						<td  width="150">
							<c:out value="${detail.bzname}"/><br>
						</td>
						<td  width="150">
							<c:out value="${detail.gwname}"/><br>
						</td>	
						<td  width="150">
							<c:out value="${detail.jzname}"/><br>
						</td>											
						<!--<td  width="200" ><c:out value="${detail.khrq}"/><br></td>-->
						<td  width="100" >
							<c:if test="${detail.bkhyy != '' && detail.bkhyy != null }">
								不考核
							</c:if>
							<c:if test="${detail.bkhyy == '' || detail.bkhyy == null}">
								考核
							</c:if>							
						<br></td>
						<td><c:out value="${detail.bkhyy}"/>
						</td>
					</tr>
				</c:forEach>

				<c:if test="${jxcpUserList == null || fn:length(jxcpUserList) == 0 }">
					<tr>
						<td colspan="6" style="text-align: center">
							无相关记录
						</td>
					</tr>
				</c:if>
			</table>
			
			<div id="main-div" scrolling="no" style= "overflow:hidden" >
				<center><iframe id= "jxkh" src="" scrolling="no" frameborder="no" width="95%" height="100%" ></iframe></center>
			</div>
	</body>
</html>
<script language="javascript">

			// 查询
			function cmt(){
				parent.location.href = "<%=contextPath%>/jxcpList!getList.do?page=1&c=c";
			}

			// 新建修改进入详细页面
			function expExl(){
					Ext.MessageBox.show({
					title:'提示',
					msg:'统计时是否覆盖原有人员绩效数据？<br>是：覆盖。否：不覆盖。取消：取消操作。',
					buttons: Ext.MessageBox.YESNOCANCEL,
					fn: function (btn) {
					
						var fgflag = "0";
					
						if (btn == 'yes') {
					
							fgflag = "1";
							
						} else if (btn == 'no') {
							fgflag = "0";
							
						} else {
							return;
						}
						
						Ext.MessageBox.show({ title:'请等待', msg:'数据统计中……', width:200,  closable:false });
						document.getElementById("jxkh").src = "<%=contextPath%>/jxcp!tongji.do?fgflag=" + fgflag;
			
					}
			

				});

			}
				
// 新建修改进入详细页面
			function exprsdlExl(){
				Ext.MessageBox.show({ title:'请等待', msg:'数据统计中……', width:200,  closable:false });
				document.getElementById("jxkh").src = "<%=contextPath%>/jxcprsdl!tongji.do";
			}
		</script>